From: Florian Müllner Date: Thu, 5 Mar 2020 02:54:23 +0000 (+0100) Subject: build: Yield 'man' option to extension-tool subproject X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~751^2^2~96 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8f851e8adf41684f629508876c94fc28b6b0b63d;p=gnome-shell.git build: Yield 'man' option to extension-tool subproject Turns out meson has a build-in pattern of what we are doing, namely: Set a subproject option to a parent project option of the same name. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1072 --- diff --git a/meson.build b/meson.build index 680b189e0..f9e178673 100644 --- a/meson.build +++ b/meson.build @@ -246,7 +246,6 @@ libgvc_gir = libgvc.get_variable('libgvc_gir') if get_option('extensions_tool') extension_tool = subproject('extensions-tool', default_options: [ - 'man=@0@'.format(get_option('man')), 'package_name=@0@'.format(meson.project_name()), ] ) diff --git a/subprojects/extensions-tool/meson_options.txt b/subprojects/extensions-tool/meson_options.txt index 2b7aef6b6..d106bf889 100644 --- a/subprojects/extensions-tool/meson_options.txt +++ b/subprojects/extensions-tool/meson_options.txt @@ -1,7 +1,8 @@ option('man', type: 'boolean', value: true, - description: 'Generate man pages' + description: 'Generate man pages', + yield: true, ) option('package_name',